package com.jinsi.service.tang.iml;

import com.jinsi.mapper.tang.ReviewStatisticsMapper;
import com.jinsi.pojo.InfoDataUser;
import com.jinsi.service.tang.ReviewStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 评论统计展示
 * @author 唐文博
 * @Date 2022-09-16
 */
@Service
@Transactional
public class ReviewStatisticsServiceImpl implements ReviewStatisticsService {
    @Autowired
    private ReviewStatisticsMapper reviewStatisticsMapper;

    /**
     * 获取7天内每天商品、视频、微圈评论的人数
     * @param commentComm
     * @return
     */
    @Override
    @Transactional(readOnly = true)
    public List<InfoDataUser> getReviewStatistics(Integer commentComm) {
        return reviewStatisticsMapper.getReviewStatistics(commentComm);
    }
}
